<div id="album">
  <table width=400>
    <tr>
      <td width=200>
        <%= button_to_next @photo %>
        <%= button_to_previous @photo %>
      </td>
      <td width=200 align=left>
        <%=button_to "返回",{:action=>"list_photos", :id=>@album}%>        
        </td>
      </tr>
      <tr>
        <td colspan=4>
          <%=photo_div_with_shadow%>
        </td>
      </tr>
    </table>
  </div>

  <!--评论列表-->
  <div id='comments'>
    <%=render :partial=>'comment', :object=>@comments, :locals=>{:photo=>@photo} %>
  </div>
  <!--评论form-->
  <div id="comment_form">
    <fieldset>
      <legend>添加评论</legend>
      <% form_remote_for :comment,
      :url=>{:action=>'add_commnet',:id=>@photo} do |form| %>
        <p>
          <label for="comment_name" >姓名:</label>
          <%=form.text_field :name, :size=>40 %>
        </p>
        <p>
          <label for="comment_email" >电子邮件:</label>
          <%=form.text_field :email, :size=>40 %>
        </p>
        <p>
          <%= show_simple_captcha :label =>"请输入识别码" %>
        </p>
        <p>
          <label for="comment_content" >内容:</label>
          <%= form.text_area :content, :rows => 3, :cols => 40 %>
        </p>
        <p>
          <%= submit_tag "提交" %>    
        </p>
      <% end %>
    </fieldset>
  </div>